import { defineManifest } from '@crxjs/vite-plugin'
import pkg from './package.json'

export default defineManifest({
  manifest_version: 3,
  name: pkg.name,
  version: pkg.version,
  icons: {
    48: 'public/gongjuxiang.png',
  },
  action: {
    default_icon: {
      48: 'public/gongjuxiang.png',
    },
    default_popup: 'src/popup/index.html',
  },
  content_scripts: [{
    js: ['src/content/main.ts'],
    matches: ['https://*/*','http://*/*'],
  }],
  permissions: [
    'sidePanel',
    'contentSettings',
    "cookies",
    "clipboardWrite",
    "activeTab",
    "notifications"
  ],
  host_permissions: [
    "https://*/*",
    "http://*/*",

  ],
  description:"是一款用于便捷复制cookie的插件，可以跨域复制cookie",
  side_panel: {
    default_path: 'src/sidepanel/index.html',
  },
})
